/*
 * Selling Partner API for Fulfillment Inbound
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * OpenAPI spec version: v0
 */


package com.dhecp.project.api.domain;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * Pallet information.
 */
@ApiModel(description = "Pallet information.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-10-14T16:02:28.581+08:00")
public class Pallet {
  @SerializedName("Dimensions")
  private Dimensions dimensions = null;

  @SerializedName("Weight")
  private Weight weight = null;

  @SerializedName("IsStacked")
  private Boolean isStacked = null;

  public Pallet dimensions(Dimensions dimensions) {
    this.dimensions = dimensions;
    return this;
  }

   /**
   * The dimensions of the pallet. Length and width must be 40 inches by 48 inches. Height must be less than or equal to 60 inches.
   * @return dimensions
  **/
  @ApiModelProperty(required = true, value = "The dimensions of the pallet. Length and width must be 40 inches by 48 inches. Height must be less than or equal to 60 inches.")
  public Dimensions getDimensions() {
    return dimensions;
  }

  public void setDimensions(Dimensions dimensions) {
    this.dimensions = dimensions;
  }

  public Pallet weight(Weight weight) {
    this.weight = weight;
    return this;
  }

   /**
   * The weight of the pallet.
   * @return weight
  **/
  @ApiModelProperty(value = "The weight of the pallet.")
  public Weight getWeight() {
    return weight;
  }

  public void setWeight(Weight weight) {
    this.weight = weight;
  }

  public Pallet isStacked(Boolean isStacked) {
    this.isStacked = isStacked;
    return this;
  }

   /**
   * Indicates whether pallets will be stacked when carrier arrives for pick-up.
   * @return isStacked
  **/
  @ApiModelProperty(required = true, value = "Indicates whether pallets will be stacked when carrier arrives for pick-up.")
  public Boolean isIsStacked() {
    return isStacked;
  }

  public void setIsStacked(Boolean isStacked) {
    this.isStacked = isStacked;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Pallet pallet = (Pallet) o;
    return Objects.equals(this.dimensions, pallet.dimensions) &&
        Objects.equals(this.weight, pallet.weight) &&
        Objects.equals(this.isStacked, pallet.isStacked);
  }

  @Override
  public int hashCode() {
    return Objects.hash(dimensions, weight, isStacked);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Pallet {\n");
    
    sb.append("    dimensions: ").append(toIndentedString(dimensions)).append("\n");
    sb.append("    weight: ").append(toIndentedString(weight)).append("\n");
    sb.append("    isStacked: ").append(toIndentedString(isStacked)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

